﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

<div class="fr-widget">
    <div class="header">
        <div class="icon">
        </div>
        <span>Đổi mật khẩu </span>
    </div>
    <%using (Html.BeginForm("UpdatePassword", "CPanel", FormMethod.Post, new { @id = "ChangePwd", @onRequest = "$.MvcForum.showLoading()", @onSuccess = "$.MvcForum.hideLoading();$.MvcForum.ajaxSuccess(msg)" }))
      {

    %>
    <%=Html.AntiForgeryTokenX("CHANGE_PWD")%>
    <table cellpadding="0" cellspacing="1" width="100%">
        <tr>
            <td class="table-cell width30">
                Mật khẩu cũ
            </td>
            <td class="table-cell">
                <input type="password" class="input {validate:{required:true}}" id="oldpwd" name="oldpwd" />
            </td>
        </tr>
        <tr>
            <td class="table-cell">
                Mật khẩu mới
            </td>
            <td class="table-cell">
                <input type="password" class="input {validate:{required:true,maxlength:40}}" id="newpwd"
                    name="newpwd" />
            </td>
        </tr>
        <tr>
            <td class="table-cell">
                Nhập lại mật khẩu
            </td>
            <td class="table-cell">
                <input type="password" class="input {validate:{required:true,equalTo:'#newpwd'}}" id="repwd" name="repwd" />
            </td>
        </tr>
        <tr>
            <td class="table-cell">
                &nbsp;
            </td>
            <td class="table-cell">
                <input type="button" onclick="$.MvcForum.ajaxSubmit('ChangePwd')" value="Cập nhật" />
            </td>
        </tr>
    </table>
    <%
        }%>
</div>
